{extend name="layout/main" /}

{block name="header"}

{/block}

{block name="content"}
<section class="panel">
    <header class="panel-heading">
        <h4>后台充值记录</h4>
    </header>
    <div class="panel-body" style="padding-bottom: 50px">
        <form class="form-horizontal" action="">


            <div class="col-xs-2 no-pd-r">
                <select name="money_type" id="money_type" class="form-control">
                    <option value="0">券种类型</option>
                    {foreach $logModel->getTypes() as $k=>$t}
                    <option {if $Request.get.money_type == $k} selected {/if} value="{$k}">{$t}</option>
                    {/foreach}
                </select>
            </div>

            <div class="form-group">

                <div class="col-xs-2 no-pd-r">
                    <select name="type" class="form-control">
                        <option {if $Request.get.type == 'nick_name'} selected {/if}   value="nick_name">账号</option>
                    </select>
                </div>
                <div class="col-xs-3">
                    <input type="text" value="" name="keyword" class="form-control"
                           placeholder="请输入搜索内容">
                </div>

                <button type="submit" class="btn btn-color">搜索</button>
            </div>
        </form>
        <table class="table table-bordered table-striped no-margin">
            <thead>
            <tr>
                <th class="text-center">ID</th>
                <th class="text-center">管理员账号</th>
                <th class="text-center">用户账号</th>
                <th class="text-center">充值数量</th>
                <th class="text-center">充值类型</th>
                <th class="text-center">充值时间</th>
            </tr>
            </thead>
            <tbody>
            {if !empty($lists)}
            {foreach $lists as $entity}
            <tr>
                <td class="text-center">{$entity->id}</td>
                <td class="text-center">{$entity->admin_name}</td>
                <td class="text-center">{$entity->mobile}</td>
                <td class="text-center">{$entity->num}</td>
                <td class="text-center">{$logModel->getChWalletName($entity->money_type)}</td>
                <td class="text-center">{$entity->create_time}</td>

            </tr>
            {/foreach}
            {else /}
            <tr class="text-center">
                <td colspan="5">暂无数据</td>
            </tr>
            {/if}
            </tbody>
        </table>
        <div class="page">
            {:htmlspecialchars_decode($lists->render())}
        </div>
    </div>
</section>
{/block}


{block name="footer"}
<script>

</script>
{/block}